package com.think.teaching.service;

import java.util.Map;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

public interface BaseService<T> extends IService<T> {
	
	T AddNewData(T entity);
	
	Boolean DeleteData(Integer id);
	
	T UpdateData(T entity);
	
	IPage<T> ListData(Integer page,Integer count,Map<String, Object> filter,Boolean withoutBan);
	
	T ChangeDataState(Integer state);
	
	T GetDataById(Integer id);

}
